package org.example.menu;

public class Dish {

    //27.先按菜单中的类型分组，再按热量（低、中、高）分组
    public String name;
    public int calorie;
    public Type type;
    public enum Type{
        MEAN,OTHER
    }

    public Dish() {
    }

    @Override
    public String toString() {
        return "Dish{" +
                "name='" + name + '\'' +
                ", calorie=" + calorie +
                ", tyep=" + type +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCalorie() {
        return calorie;
    }

    public void setCalorie(int calorie) {
        this.calorie = calorie;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Dish(String name, int calorie, Type type) {
        this.name = name;
        this.calorie = calorie;
        this.type = type;
    }
}
